<template>
  <div class="modal-box" :style="{'display':popupVisible?'flex':'none'}">
    <div class="layer" ></div>
    <div class="box">
      <div class="box-ct">
        <div class="tt" v-html="ttHtml"></div>
        <div class="ct">
          <slot></slot>
        </div>
        <div class="foot" @click="popupHide">
          <a  v-html="footerHtml"></a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
export default {
  name: "hintModal",
  data() {
    return {
      popupVisible: false
    };
  },
  props: {
    ctHtml: {
      type: String
    },
    ttHtml: {
      type: String
    },
    footerHtml: {
      type: String
    },

  },
  mounted() {},
  methods: {
    popupShow() {
      this.popupVisible = true;
    },
    popupHide() {
      this.popupVisible = false;
    }
  },
};
</script>

<style lang="scss" scoped>
@import "hintModal";
</style>
